package com.laoxiang.modules.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 参数配置表(SysConfig)表实体类
 *
 * @author db
 * @since 2023-11-17 20:57:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_config")
public class SysConfig implements Serializable {
    private static final long serialVersionUID = 777991252105621227L;

    @TableId(value = "config_id", type = IdType.AUTO)
    private Integer configId;

    @ApiModelProperty("参数名称")
    @TableField("config_name")
    private String configName;

    @ApiModelProperty("参数键名")
    @TableField("config_key")
    private String configKey;

    @ApiModelProperty("参数键值")
    @TableField("config_value")
    private String configValue;

    @ApiModelProperty("系统内置（Y是 N否")
    @TableField("config_type")
    private String configType;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建者")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("更新者")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("创建日期")
    @TableField(value = "create_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("删除标志（0代表未删除，1代表已删除）")
    @TableField("is_delete")
    private Integer isDelete;





}

